﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_SignUpStudentsPirze 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_SignUpStudentsPirze : Entity 
	{
		public TB_SignUpStudentsPirze():base("TB_SignUpStudentsPirze") {}

		#region Model
		private string _ID;
		private string _PrizeTitle;
		private DateTime _PrizeDate;
		private string _PrizeLevel;
		private string _PrizeType;
		private string _PrizeMemo;
		/// <summary>
		/// 
		/// </summary>
		public string ID
		{
			get{ return _ID; }
			set
			{
				this.OnPropertyValueChange(_.ID,_ID,value);
				this._ID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string PrizeTitle
		{
			get{ return _PrizeTitle; }
			set
			{
				this.OnPropertyValueChange(_.PrizeTitle,_PrizeTitle,value);
				this._PrizeTitle=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime PrizeDate
		{
			get{ return _PrizeDate; }
			set
			{
				this.OnPropertyValueChange(_.PrizeDate,_PrizeDate,value);
				this._PrizeDate=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string PrizeLevel
		{
			get{ return _PrizeLevel; }
			set
			{
				this.OnPropertyValueChange(_.PrizeLevel,_PrizeLevel,value);
				this._PrizeLevel=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string PrizeType
		{
			get{ return _PrizeType; }
			set
			{
				this.OnPropertyValueChange(_.PrizeType,_PrizeType,value);
				this._PrizeType=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string PrizeMemo
		{
			get{ return _PrizeMemo; }
			set
			{
				this.OnPropertyValueChange(_.PrizeMemo,_PrizeMemo,value);
				this._PrizeMemo=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ID};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ID,
				_.PrizeTitle,
				_.PrizeDate,
				_.PrizeLevel,
				_.PrizeType,
				_.PrizeMemo};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ID,
				this._PrizeTitle,
				this._PrizeDate,
				this._PrizeLevel,
				this._PrizeType,
				this._PrizeMemo};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ID = DataUtils.ConvertValue<string>(reader["ID"]);
			this._PrizeTitle = DataUtils.ConvertValue<string>(reader["PrizeTitle"]);
			this._PrizeDate = DataUtils.ConvertValue<DateTime>(reader["PrizeDate"]);
			this._PrizeLevel = DataUtils.ConvertValue<string>(reader["PrizeLevel"]);
			this._PrizeType = DataUtils.ConvertValue<string>(reader["PrizeType"]);
			this._PrizeMemo = DataUtils.ConvertValue<string>(reader["PrizeMemo"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ID = DataUtils.ConvertValue<string>(row["ID"]);
			this._PrizeTitle = DataUtils.ConvertValue<string>(row["PrizeTitle"]);
			this._PrizeDate = DataUtils.ConvertValue<DateTime>(row["PrizeDate"]);
			this._PrizeLevel = DataUtils.ConvertValue<string>(row["PrizeLevel"]);
			this._PrizeType = DataUtils.ConvertValue<string>(row["PrizeType"]);
			this._PrizeMemo = DataUtils.ConvertValue<string>(row["PrizeMemo"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_SignUpStudentsPirze");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ID = new Field("ID","TB_SignUpStudentsPirze","ID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field PrizeTitle = new Field("PrizeTitle","TB_SignUpStudentsPirze","PrizeTitle");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field PrizeDate = new Field("PrizeDate","TB_SignUpStudentsPirze","PrizeDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field PrizeLevel = new Field("PrizeLevel","TB_SignUpStudentsPirze","PrizeLevel");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field PrizeType = new Field("PrizeType","TB_SignUpStudentsPirze","PrizeType");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field PrizeMemo = new Field("PrizeMemo","TB_SignUpStudentsPirze","PrizeMemo");
		}
		#endregion


	}
}

